feat(replay): Expose captureSurfaceViews option for Android Session Replay#6175
Open
antonis wants to merge 3 commits into
Open
feat(replay): Expose captureSurfaceViews option for Android Session Replay#6175antonis wants to merge 3 commits into
antonis wants to merge 3 commits into
Conversation
…eplay Bridge the Android SDK's captureSurfaceViews option to React Native, allowing replays to include content from SurfaceView components (e.g. video players, map SDKs) that otherwise appear as black regions. Closes #6107 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
Plus 2 more 🤖 This preview updates automatically when you update the PR. |
Contributor
|
Open
6 tasks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
antonis
commented
May 18, 2026
📲 Install BuildsAndroid
|
Contributor
iOS (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 44c8b3f+dirty | 3823.85 ms | 1207.66 ms | -2616.19 ms |
| 5a21b51+dirty | 3823.11 ms | 1214.46 ms | -2608.65 ms |
| 100ce80+dirty | 3842.93 ms | 1229.52 ms | -2613.41 ms |
| 9210ae6+dirty | 3815.93 ms | 1214.14 ms | -2601.79 ms |
| 0d9949d+dirty | 1211.38 ms | 1219.67 ms | 8.29 ms |
| a5d243c+dirty | 3842.35 ms | 1214.29 ms | -2628.06 ms |
| 8929511+dirty | 1216.42 ms | 1219.02 ms | 2.60 ms |
| 5c1e987+dirty | 1204.30 ms | 1222.15 ms | 17.85 ms |
| d038a14+dirty | 3845.71 ms | 1228.11 ms | -2617.59 ms |
| 71abba0+dirty | 3821.93 ms | 1202.81 ms | -2619.12 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 44c8b3f+dirty | 5.15 MiB | 6.66 MiB | 1.51 MiB |
| 5a21b51+dirty | 5.15 MiB | 6.67 MiB | 1.51 MiB |
| 100ce80+dirty | 5.15 MiB | 6.67 MiB | 1.51 MiB |
| 9210ae6+dirty | 5.15 MiB | 6.68 MiB | 1.53 MiB |
| 0d9949d+dirty | 3.38 MiB | 4.76 MiB | 1.38 MiB |
| a5d243c+dirty | 5.15 MiB | 6.68 MiB | 1.53 MiB |
| 8929511+dirty | 3.38 MiB | 4.80 MiB | 1.42 MiB |
| 5c1e987+dirty | 3.38 MiB | 4.73 MiB | 1.35 MiB |
| d038a14+dirty | 5.15 MiB | 6.67 MiB | 1.51 MiB |
| 71abba0+dirty | 5.15 MiB | 6.67 MiB | 1.52 MiB |
Contributor
Android (legacy) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 890d145+dirty | 504.54 ms | 491.55 ms | -12.99 ms |
| 5a21b51+dirty | 471.42 ms | 524.22 ms | 52.80 ms |
| 5fe1c6c+dirty | 401.62 ms | 445.28 ms | 43.66 ms |
| 44c8b3f+dirty | 414.20 ms | 457.28 ms | 43.08 ms |
| 04207c4+dirty | 459.19 ms | 518.54 ms | 59.35 ms |
| a5d243c+dirty | 424.52 ms | 485.18 ms | 60.66 ms |
| 5569641+dirty | 406.43 ms | 428.51 ms | 22.08 ms |
| 3817909+dirty | 406.67 ms | 416.58 ms | 9.91 ms |
| a0d8cf8+dirty | 411.71 ms | 467.57 ms | 55.87 ms |
| bc0d8cf+dirty | 412.37 ms | 466.26 ms | 53.89 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 890d145+dirty | 43.75 MiB | 48.14 MiB | 4.39 MiB |
| 5a21b51+dirty | 48.30 MiB | 53.49 MiB | 5.19 MiB |
| 5fe1c6c+dirty | 43.75 MiB | 48.14 MiB | 4.39 MiB |
| 44c8b3f+dirty | 48.30 MiB | 53.46 MiB | 5.15 MiB |
| 04207c4+dirty | 43.75 MiB | 48.12 MiB | 4.37 MiB |
| a5d243c+dirty | 48.30 MiB | 53.54 MiB | 5.23 MiB |
| 5569641+dirty | 48.30 MiB | 53.48 MiB | 5.18 MiB |
| 3817909+dirty | 43.75 MiB | 48.08 MiB | 4.33 MiB |
| a0d8cf8+dirty | 48.30 MiB | 53.49 MiB | 5.19 MiB |
| bc0d8cf+dirty | 48.30 MiB | 53.48 MiB | 5.18 MiB |
Contributor
iOS (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 44c8b3f+dirty | 3849.24 ms | 1209.94 ms | -2639.31 ms |
| 5a21b51+dirty | 3837.87 ms | 1223.47 ms | -2614.40 ms |
| 100ce80+dirty | 3843.57 ms | 1226.46 ms | -2617.12 ms |
| 9210ae6+dirty | 3834.11 ms | 1216.64 ms | -2617.47 ms |
| 0d9949d+dirty | 1203.94 ms | 1202.27 ms | -1.67 ms |
| a5d243c+dirty | 3827.92 ms | 1220.10 ms | -2607.81 ms |
| 8929511+dirty | 1223.41 ms | 1222.49 ms | -0.92 ms |
| 5c1e987+dirty | 1208.43 ms | 1220.72 ms | 12.29 ms |
| d038a14+dirty | 3831.11 ms | 1216.30 ms | -2614.81 ms |
| 71abba0+dirty | 3852.70 ms | 1224.53 ms | -2628.16 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 44c8b3f+dirty | 5.15 MiB | 6.66 MiB | 1.51 MiB |
| 5a21b51+dirty | 5.15 MiB | 6.67 MiB | 1.51 MiB |
| 100ce80+dirty | 5.15 MiB | 6.67 MiB | 1.51 MiB |
| 9210ae6+dirty | 5.15 MiB | 6.68 MiB | 1.53 MiB |
| 0d9949d+dirty | 3.38 MiB | 4.76 MiB | 1.38 MiB |
| a5d243c+dirty | 5.15 MiB | 6.68 MiB | 1.53 MiB |
| 8929511+dirty | 3.38 MiB | 4.80 MiB | 1.42 MiB |
| 5c1e987+dirty | 3.38 MiB | 4.73 MiB | 1.35 MiB |
| d038a14+dirty | 5.15 MiB | 6.67 MiB | 1.51 MiB |
| 71abba0+dirty | 5.15 MiB | 6.67 MiB | 1.52 MiB |
Contributor
Android (new) Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 5a21b51+dirty | 505.16 ms | 539.20 ms | 34.04 ms |
| 3817909+dirty | 357.52 ms | 391.52 ms | 34.00 ms |
| 100ce80+dirty | 463.28 ms | 532.10 ms | 68.82 ms |
| 2c735cc+dirty | 435.20 ms | 459.48 ms | 24.28 ms |
| 7ac3378+dirty | 410.67 ms | 442.60 ms | 31.92 ms |
| a5d243c+dirty | 499.20 ms | 525.62 ms | 26.42 ms |
| 23598c3+dirty | 371.92 ms | 420.65 ms | 48.74 ms |
| 3ce5254+dirty | 373.90 ms | 427.84 ms | 53.94 ms |
| 890d145+dirty | 486.42 ms | 514.85 ms | 28.43 ms |
| 5c1e987+dirty | 444.71 ms | 475.13 ms | 30.42 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 5a21b51+dirty | 48.30 MiB | 53.49 MiB | 5.19 MiB |
| 3817909+dirty | 43.94 MiB | 48.94 MiB | 5.00 MiB |
| 100ce80+dirty | 48.30 MiB | 53.46 MiB | 5.15 MiB |
| 2c735cc+dirty | 43.94 MiB | 48.94 MiB | 5.00 MiB |
| 7ac3378+dirty | 43.94 MiB | 48.99 MiB | 5.05 MiB |
| a5d243c+dirty | 48.30 MiB | 53.54 MiB | 5.23 MiB |
| 23598c3+dirty | 43.94 MiB | 49.02 MiB | 5.08 MiB |
| 3ce5254+dirty | 43.94 MiB | 48.98 MiB | 5.04 MiB |
| 890d145+dirty | 43.94 MiB | 49.00 MiB | 5.06 MiB |
| 5c1e987+dirty | 43.94 MiB | 48.94 MiB | 5.00 MiB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📢 Type of change
📜 Description
Bridges the Android SDK's
captureSurfaceViewsoption (sentry-java#5333) to the React Native SDK.This allows Session Replay to capture content rendered inside
SurfaceViewcomponents (e.g. video players, map SDKs, Unity views) that otherwise appear as black or transparent regions in replays.Changes:
captureSurfaceViews?: booleantoMobileReplayOptionsin TypeScriptrnMobileReplayOptionsinRNSentryStart.javaand pass it toandroidReplayOptions.setCaptureSurfaceViews()💡 Motivation and Context
The Android SDK added experimental support for capturing
SurfaceViewcontent in v8.41.0. We already depend on that version, but the option wasn't bridged to React Native.Closes #6107
💚 How did you test it?
yarn build:sdk)SurfaceView(e.g. video player)📝 Checklist
sendDefaultPIIis enabled🔮 Next steps